package spring.web.mvc;

import java.util.Locale;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class admin {

	@RequestMapping(value = "/admin1", method = RequestMethod.GET)
	public String admin1(Locale locale, Model model) {
		//logger.info("Welcome home! The client locale is {}.", locale);
		
		model.addAttribute("title", "admin1");
		model.addAttribute("text", "ADMIN - 1");
		model.addAttribute("img", "teen-2-Copy.jpg");
		
		return "/admin/admin";
	}
	
	@RequestMapping(value = "/admin2", method = RequestMethod.GET)
	public String admin2(Locale locale, Model model) {
		//logger.info("Welcome home! The client locale is {}.", locale);
		
		model.addAttribute("title", "admin2");
		model.addAttribute("text", "ADMIN - 2");
		model.addAttribute("img", "teen-3-Copy.jpg");
		
		return "/admin/admin";
	}
	
	@RequestMapping(value = "/admin3", method = RequestMethod.GET)
	public String admin3(Locale locale, Model model) {
		//logger.info("Welcome home! The client locale is {}.", locale);
		
		model.addAttribute("title", "admin3");
		model.addAttribute("text", "ADMIN - 3");
		model.addAttribute("img", "teen-4-Copy.jpg");
		
		return "/admin/admin";
	}
}
